/*
 * @Author: your name
 * @Date: 2022-03-03 09:06:39
 * @LastEditTime: 2022-03-03 09:10:31
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AEj
 * @FilePath: \JS\day05\1-中括号访问.js
 */
var obj={
    name :'kjp',
    age:12
}
var name='age';
console.log(obj['name']);
console.log(obj[name]);